//
//  StockManagementPopModel.m
//  TryShopping
//
//  Created by LiYinDi on 16/6/22.
//  Copyright © 2016年 RuiBen. All rights reserved.
//

#import "StockManagementPopModel.h"
#import "StockManagementPopListModel.h"

@implementation StockManagementPopModel
+(instancetype)dataModelWithDict:(NSDictionary *)dict
{
    StockManagementPopModel *dataModel=[[self alloc] init];
    dataModel.specInv=[NSString stringWithFormat:@"%@",dict[@"specInv"]];
    dataModel.specPrice=[NSString stringWithFormat:@"%@",dict[@"specPrice"]];
    dataModel.sizeName=[NSString stringWithFormat:@"%@",dict[@"sizeName"]];
    dataModel.itemName=[NSString stringWithFormat:@"%@",dict[@"itemName"]];
    dataModel.colourName=[NSString stringWithFormat:@"%@",dict[@"colourName"]];
    dataModel.imageUrl=[NSString stringWithFormat:@"%@",dict[@"imageUrl"]];
//    NSMutableArray *array=[NSMutableArray array];
//    NSArray *sizeArray=dict[@"companyStocks"];
//    
//    if (sizeArray.count>0) {
//        
//        for (NSDictionary *sizeDic in sizeArray)
//        {
//            StockManagementPopListModel *imgModel=[StockManagementPopListModel dataModelWithDict:sizeDic];
//            
//            
//            [ array addObject:imgModel];
//            
//        }
//        
//    }
//    dataModel.listModelArray=array;
    return dataModel;
}

@end
